package com.ctgu.AutoIdentify.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.ctgu.AutoIdentify.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 */
@Repository
@Mapper
public interface UserMapper extends BaseMapper<User> {

    @Update("update user set password = #{newpass} where username = #{username} and password = #{password}")
    int updatePassword(User user);

}
